#pragma once
#include "AgentState.h"
#include "World.h"
#include "Vector2.h"
#include "470bot.h"
#include "Graph.h"

class FollowSearchPathState :
	public AgentState
{
private:
	Vector2 pfFieldPath(tank_t* tank);
	void setNextWayPoint(tank_t* tank);

	bool _makeTransition;
	int pos;
	std::vector<Vector2> path;

	Vector2 enemyFlag;
	Vector2 base;
	World* w;
	BZRC* com;

public:
	FollowSearchPathState(Graph* g, Vector2 start, Vector2 goal, bool makeTransition);
	~FollowSearchPathState(void);
	Command GetCommand(MultiAgent* agent);

	float cutoff;
};

